package com.wh.custom.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wh.custom.pojo.CustomMycustom;
import com.wh.custom.pojo.CustomSalesmancustom;
import com.wh.custom.dto.CustomSalesmancustomDto;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;

import javax.servlet.http.HttpServletResponse;


/**
* 后端Service接口；
*/
public interface ICustomSalesmancustomService extends IService<CustomSalesmancustom> {
    /**
     * 添加一个对象
     * @param customSalesmancustom
     */
    void add(CustomSalesmancustom customSalesmancustom);

    /**
     * 删除一个对象
     * @param id
     */
    void deleteById(Long id);

    /**
     * 批量删除
     * @param ids
     */
    void patchDel(List<Long> ids);

    /**
     * 更新一个对象
     * @param customSalesmancustom
     */

    /**
     * 获取一个对象
     * @param id
     * @return
     */
    CustomSalesmancustom findOne(Long id);

    /**
     * 获取所有对象
     * @return
     */
    List<CustomSalesmancustom> findAll();

    /**
     * 分页查询
     * @param  customSalesmancustomDto 分页参数
     * @return
     */
    IPage<CustomSalesmancustom> findByPage(CustomSalesmancustomDto customSalesmancustomDto);

    void recovery(List<Long> ids);

    void export(HttpServletResponse response);
}
